import request from '@/utils/request'

export function saveOrUpdate(data) {
  return request({
    url: '/wordSystemLibraryType/saveOrUpdate',
    method: 'POST',
    data
  })
}

export function selectTreeList(data) {
  return request({
    url: '/wordSystemLibraryType/treeList',
    method: 'POST',
    data
  })
}

export function deleteById(params) {
  return request({
    url: '/wordSystemLibraryType/deleteById',
    method: 'POST',
    params
  })
}

/**
 * 重命名
 * @param params
 * @returns {AxiosPromise}
 */
export function renameName(data) {
  return request({
    url: '/wordSystemLibraryType/renameName',
    method: 'POST',
    data
  })
}

/**
 * 移动
 * @param params
 * @returns {AxiosPromise}
 */
export function move(data) {
  return request({
    url: '/wordSystemLibraryType/moveSort',
    method: 'POST',
    data
  })
}
